<template>
    <div class="ex-container page-container">
        <div class="text-center">
            <img src="~@/assets/images/404.svg" alt="" />
        </div>
        <div class="text-center">
            <h1>抱歉，你访问的页面不存在</h1>
            <n-button type="info" @click="route2HomePage">回到首页</n-button>
        </div>
    </div>
</template>

<script setup lang="ts">
import { route2HomePage } from "@/authorization/useAuthorization"
</script>

<style scoped lang="less">
.page-container {
    width: 100%;
    border-radius: 4px;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;

    .text-center {
        text-align: center;
        h1 {
            color: #666;
            padding: 20px 0;
            font-size: 1rem;
            line-height: 1.5rem;
        }
    }

    img {
        width: 350px;
        margin: 0 auto;
    }
}
</style>
